/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Topka;

/**
 *
 * @author Asko
 */
public class MySingleton {

  private static  MySingleton singleton ;
    
    private  MySingleton() {
    }
    
    public static  MySingleton getSingleton() {
        if (singleton == null) {
            singleton = new MySingleton();
        }
        return  singleton ;
    }
    
    public String getString () {
        return "This is your obj : " + singleton.toString() + " end.";
    }   

    @Override
    public String toString() {
        return super.toString();
    }
}
